/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package milkyway.hightech.comparators;

import java.util.Comparator;
import java.util.Date;
import milkyway.hightech.entry.Entry;

/**
 *
 * @author michael
 */
public class SortByDate implements Comparator<Entry>
{
    @Override
    public int compare(Entry e1, Entry e2)
    {
	Date d1 = e1.getDate();
	Date d2 = e2.getDate();
	return d1.compareTo(d2);
    }
}
